package com.smart.village.big.screen.domain;

import com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

public class PartyOrganizationTreeNode implements Serializable {
    private static final long serialVersionUID = 1L;
    private String serialNumber;
    private String parentSerialNumber;
    private String position;
    private String personName;
    private String pictureURL;
    private List<PartyOrganizationTreeNode> children = Lists.newArrayList();

    public PartyOrganizationTreeNode(String serialNumber, String parentSerialNumber, String position, String personName, String pictureURL) {
        this.serialNumber = serialNumber;
        this.parentSerialNumber = parentSerialNumber;
        this.position = position;
        this.personName = personName;
        this.pictureURL = pictureURL;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getParentSerialNumber() {
        return parentSerialNumber;
    }

    public void setParentSerialNumber(String parentSerialNumber) {
        this.parentSerialNumber = parentSerialNumber;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPictureURL() {
        return pictureURL;
    }

    public void setPictureURL(String pictureURL) {
        this.pictureURL = pictureURL;
    }

    public List<PartyOrganizationTreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<PartyOrganizationTreeNode> children) {
        this.children = children;
    }

    public void addChild(PartyOrganizationTreeNode child) {
        this.children.add(child);
    }
}
